package pl.bizuteria.sklep.server.logging;

import java.util.logging.LogRecord;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.gwt.logging.shared.RemoteLoggingService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class AdminRemoteLoggingServiceImpl extends RemoteServiceServlet
		implements RemoteLoggingService {

	public final String logOnServer(LogRecord lr) {
		String loggerName = lr.getLoggerName();
		Logger logger = LoggerFactory.getLogger(loggerName);
		logger.info(lr.getMessage());
		return null;
	}
}
